// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

var min = 1;
var max = 5;
var current = min;

function updateIcon() {
  chrome.browserAction.setIcon({path:"icon" + current + ".png"});
  current++;

  if (current > max)
    current = min;
}
function to_url(){
	window.location.href ="http://wan.duowan.com/buyer/order";
}
chrome.browserAction.onClicked.addListener(updateIcon);
//chrome.browserAction.onClicked.addListener(to_url);
updateIcon();
//to_url();

